import { SET_APP_STATE } from '../../constants/ActionType';
const intialState = {
    loginFormData: {
        username: "",
        password: ""
    },
    registerFormData: {
        username: "",
        password: "",
        passwordConfirm: ""
    }
}
export default function loginData(state = intialState, action) {
    const { type, payload } = action;
    switch (type) {
        case SET_APP_STATE:
            return { ...state, ...payload };
        default:
            return state;
    }
}